package com.macro.mall.tiny.modules.pms.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 广告
 * </p>
 *
 * @author tyrone
 * @since 2024-11-14
 */
@Getter
@Setter
@TableName("pms_ad")
@ApiModel(value = "PmsAd对象", description = "广告")
public class PmsAd implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("广告名")
    private String name;

    @ApiModelProperty("图片连接")
    private String icon;

    @ApiModelProperty("广告位置 0 首页 1 计算器")
    private Integer location;

    @ApiModelProperty("广告类型 0 小程序 1 图片 ")
    private Integer type;

    @ApiModelProperty("如果是小程序类型需要该参数进行跳转")
    private String appId;

    @ApiModelProperty("如果是小程序类型表示进行跳转的路径,如果是其他类型则为url")
    private String path;

    @ApiModelProperty("额外信息")
    private String extra;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expiredTime;

    @ApiModelProperty("状态 0不可用 1可用")
    private Integer status;

    @ApiModelProperty("排序 默认0")
    private Integer sort;


}
